<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet 
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2011 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <xinqiyang@gmail.com>
// +----------------------------------------------------------------------

/**
 * check action
 * @author xinqiyang
 *
 */
class CheckAction extends AppBaseAction
{
	
	public function signUpCheckAccount()
	{
		echo !empty($_POST['account']) ? CheckLogic::check(__FUNCTION__, $_POST['account']) : '不能为空';
	}
	
	public function signUpCheckEmail()
	{
		echo !empty($_POST['email']) ? CheckLogic::check(__FUNCTION__, $_POST['email']) : '不能为空';
	}
	
	
	public function checkSpam()
	{
		//must use the utf-8 charset
		echo !empty($_POST['content']) ? CheckLogic::check(__FUNCTION__, $_POST['content']) : '不能为空';
	}
	
	public function checkGroupName()
	{
		//must use the utf-8 charset
		echo !empty($_POST['content']) ? CheckLogic::check(__FUNCTION__, $_POST['enname']) : '不能为空';
	}
	
}